x86: don't ignore foreigndom input on various MMUEXT ops
authorJan Beulich <jbeulich@suse.com>
Tue, 25 Nov 2014 09:08:04 +0000 (10:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 25 Nov 2014 09:08:04 +0000 (10:08 +0100)
commit1516b33961028ba4f6e70c0da464e9ed0a190760
treec424b45e19d13d803f152283d54b7f7e7c4fdcce
parentdc419f0a3752032ab00124dc55609d9231e53128
x86: don't ignore foreigndom input on various MMUEXT ops

Instead properly fail requests that shouldn't be issued on foreign
domains or - for MMUEXT_{CLEAR,COPY}_PAGE - extend the existing
operation to work that way.

In the course of doing this the need to always clear "okay" even when
wanting an error code other than -EINVAL became unwieldy, so the
respective logic is being adjusted at once, together with a little
other related cleanup.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Tim Deegan <tim@xen.org>
Release-Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/arch/x86/mm.c